package cn.kimming.rpc.common.constant;

public class RpcConstant {
	// 服务端端口
	public static final String MY_RPC_SERVER_PORT= "my.rpc.server.port";
	public static final int MY_RPC_SERVER_PORT_DEFAULT_VALUE= 9000;


	// zk相关
	public static final String MY_RPC_ZK_URL = "my.rpc.zk.url";
	public static final String MY_RPC_ZK_URL_DEFAULT_VALUE = "127.0.0.1:2181";

	public static final String MY_RPC_ZK_TIMEOUT = "my.rpc.zk.timeout";
    public static final int MY_RPC_ZK_TIMEOUT_DEFAULT_VALUE = 5000;

    // 客户端相关
    public static final String MY_RPC_CALL_TIMEOUT_MS = "my.rpc.client.timeout";
    public static final long MY_RPC_CALL_TIMEOUT_MS_DEFAULT_VALUE = 500;

    public static final String MY_RPC_CLIENT_PROXY_WAY = "my.rpc.client.proxy";
    public static final ProxyWay MY_RPC_CLIENT_PROXY_WAY_DEFAULT_VALUE = ProxyWay.JDK;

    public static final String  MY_RPC_SERIALIZATION_WAY = "my.rpc.client.serialization";
    public static final SerializationWay MY_RPC_SERIALIZATION_WAY_DEFAULT_VALUE = SerializationWay.PROTOSTUFF;

    public static final String  MY_RPC_LOAD_BALANCE = "my.rpc.client.load-balance";
    public static final LoadBalance MY_RPC_LOAD_BALANCE_DEFAULT_VALUE = LoadBalance.ROUNDROBIN;

}
